﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PraiseSystem.Models;

namespace PraiseSystem.Controllers
{
    public class PraisesController : Controller
    {
        private PraiseDBContext db = new PraiseDBContext();
        public ActionResult Index()
        {
            return View(db.Users.Select(u=>u.Praises.Count).Max());
        }
    }
}
